<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>出差申请单</title>
    <link rel="stylesheet" href="../../../css/aui.css" />
    <link rel="stylesheet" href="../../../css/iconfont/iconfont.css">
    <link rel="stylesheet" href="../../../css/my/frequenter/index.css" />
</head>
<body style="cursor: pointer">
    <header class="aui-bar aui-bar-nav" id="header">
        <a class="aui-pull-left aui-btn" onclick="back();">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title">出差申请单</div>
    </header>
</body>
<script type="text/javascript" src="../../../script/aui/api.js"></script>
<script type="text/javascript" src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../../script/config.js"></script>
<script type="text/javascript" src="../../../script/common.js"></script>

<script>
    apiready = function(){
        api.parseTapmode();

        //设置高度
        var header = $api.byId('header');
        $api.fixStatusBar(header);

        var headerPos = $api.offset(header),
            frameheight = api.winHeight - $api.byId('header').offsetHeight;
        api.openFrame({
            name: 'travel_apply_info_frm',
            url: './travel_apply_info_frm.html',
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: frameheight
            },
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });
        api.addEventListener({
            name: 'keyback'
        }, function(ret, err) {
            api.setScreenOrientation({
                orientation: 'auto'
            });
            if (deviceType() === 'ios') {
                api.setScreenOrientation({
                    orientation: 'portrait_up'
                });
            }
            api.closeWin();
        })
    };

    function back() {
        api.setScreenOrientation({
            orientation: 'auto'
        });
        if (deviceType() === 'ios') {
            api.setScreenOrientation({
                orientation: 'portrait_up'
            });
        }
        api.closeWin();
    }
</script>
</html>
